package org.insia.smartposse.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
/**
 * Test Action
 * @author sok hout
 *
 */
public class TestAction extends DispatchAction {

	@Override
	protected ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) 
	throws Exception {
		String[] descriptions = new String[]{"a","b","c","d" };
		request.setAttribute("descriptions", descriptions);
		return mapping.findForward("success");
	}

	protected ActionForward saveMethode(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) 
	throws Exception {

		return mapping.findForward("submited");
	}
}
